<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>首页</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" href="dist\css\swiper.css">
		<link rel="stylesheet" type="text/css" href="css/cm-layout.css"/>
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
		
	</head>
	
	
	<body>

		<!--头部s-->
		<header class="clearfix">
			<div class="head-logo fl ">
				<a href="#"><img src="img/index/logo.png"/></a>
			</div>
			
			
			<div class="area-set fr clearfix">
				<select name="">
					<option value="">广州市</option>
					<option value="">上海市</option>
					<option value="">北京市</option>
				</select>
			</div>
			
			
			<div class="searchBar">	
				<input type="text" name="" id="" value="" />
				<input type="image" src="img/index/search.png" name="" id="" value="" />
				
			</div>
		</header>
		<!--头部e-->
		
		
		
		
		<!--内容s-->
		<section>
			

				<div class="swiper-container">
				    <div class="swiper-wrapper">
				        <div class="swiper-slide"><img src="img/index/banner.png"/></div>
				        
				    </div>
				    <!-- 如果需要分页器 -->
				    <div class="swiper-pagination"></div>
				    
				    <!-- 如果需要导航按钮 -->
				    <!--<div class="swiper-button-prev"></div>-->
				    <!--<div class="swiper-button-next"></div>-->
				    
				    <!-- 如果需要滚动条 -->
				    <!--<div class="swiper-scrollbar"></div>-->
				</div>

			
			<div class="active">
				
				<div class="theme">
					<div class="t-des">
						<img src="img/index/hot.png"/>
						<span>优惠团购</span>
					</div>
					
					<div class="more">
						<a href="#">
						<span>更多</span>
						<img src="img/more.png"/>
						</a>
					</div>
					
				</div>
				
				<div class="img-group">
					
					<div class="img-box">
						<img src="img/index/hot-1.png"/>
					</div>
					<div class="img-box">
						<img src="img/index/hot-2.png"/>
					</div>
					<div class="img-box">
						<img src="img/index/hot-3.png"/>
					</div>
					<div class="img-box">
						<img src="img/index/hot-4.png"/>
					</div>
					
				</div>
				
				
			</div>
			
			<div class="like">
				
				<div class="theme">
					<div class="t-des">
						<img src="img/index/like.png"/>
						<span>猜你喜欢</span>
					</div>
					
					<div class="more">
						<a href="#">
						<span>更多</span>
						<img src="img/more.png"/>
						</a>
					</div>
					
				</div>
				
				
				<div class="shop-des">
					<div class="shop-list">
						<dl class="shop-info">
							<dt class="shop-img"><a href="detail.html"><img src="img/index/like-1.png"/></a></dt>
							<dd class="shop-msg"><a href="detail.html">万岁寿司（正佳店）</a></dd>
							<dd class="shop-msg"><p>[100店通用] 双人套餐</p></dd>
							<dd class="shop-msg"><p>￥88.00</p></dd>
						</dl>
						
						<div class="shop-data">
							<p><100m</p>
							<p>已售1000</p>
						</div>
						
						
					</div>
						
					
					<div class="shop-list">
						<dl class="shop-info">
							<dt class="shop-img"><a href="detail.html"><img src="img/index/like-2.png"/></a></dt>
							<dd class="shop-msg"><a href="detail.html">周黑鸭（正佳店）</a></dd>
							<dd class="shop-msg"><p>[100店通用] 双人套餐</p></dd>
							<dd class="shop-msg"><p>￥88.00</p></dd>
						</dl>
						
						<div class="shop-data">
							<p><100m</p>
							<p>已售1000</p>
						</div>
						
						
					</div>
					
					
					
					
				</div>
				
				
				
			</div>
			
			
			
			
		</section>
		<!--内容e-->
		
		
			
			
			
		<!--尾部s-->
		<footer>
			
			<div class="footer-btn fl">
				<a href="index.html">
					<img src="img/on-home-menu.png"/>
					<p>首页</p>
				</a>
			</div>
			
			<div class="footer-btn fl">
				<a href="classify.html">
					<img src="img/classify-menu.png"/>
					<p>分类</p>
				</a>
			</div>
			
			<div class="footer-btn fl">
				<a href="find.html">
					<img src="img/find-menu.png"/>
					<p>发现</p>
				</a>
			</div>
			
			<div class="footer-btn fl">
				<a href="mine.html">
					<img src="img/mine-menu.png"/>
					<p>我的</p>
				</a>
			</div>
			
			
		</footer>
		<!--尾部e-->
		
		
		<script type="text/javascript">
			document.body.style.height = window.innerHeight + "px";
    
		    /*动态改变根元素字体大小*/
		    function recalc() {
		    	//客户端宽度
		        var clientWidth = document.documentElement.clientWidth;
		        if(!clientWidth) return;
		        document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
		        // 字体大小   = 1个rem单位表示多少个像素（设备的宽度   /设计宽度）
		    }
		
		    function initRecalc() {
		        recalc();
		        // if(浏览器支持横竖屏切换的事件){横竖屏事件}else{ resize事件 }
		        var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
		        if(!document.addEventListener) return;
		        window.addEventListener(resizeEvt, recalc, false);
		        document.addEventListener('DOMContentLoaded', recalc, false);
		    }
            initRecalc();

		</script>
	
	<script src="dist\js\swiper.js"></script>
	<script>        
	  var mySwiper = new Swiper ('.swiper-container', {
	    direction: 'horizontal', // 垂直切换选项
	    loop: true, // 循环模式选项
	    
	    autoplay: {
        enabled: true,
        disableOnInteraction: false,
        },
	    
	    
	    // 如果需要分页器
	    pagination: {
	      el: '.swiper-pagination',
	    },
	    
	    // 如果需要前进后退按钮
	    navigation: {
	      nextEl: '.swiper-button-next',
	      prevEl: '.swiper-button-prev',
	    },
	    
	    // 如果需要滚动条
	    scrollbar: {
	      el: '.swiper-scrollbar',
	      
	    },
	  })        
  	</script>
	</body>
</html>
